package com.javalab._3object_oriented._4static;

public class SubStaticBlock extends StaticBlock {
    private static int i = 1;
    // 静态代码块
    static {
        System.out.println("2");
    }

    // 代码块
    {
        System.out.println("5");
    }

    // 构造方法
    public SubStaticBlock() {
        System.out.println("6");
    }

    public static void main(String[] args) {
        SubStaticBlock subStaticBlock = new SubStaticBlock();
        // 初始化过程 1 2 3 4 5 6

    }
}
